import pdfkit
#启动参数
wkhtmltopdf_options = {
	'enable-local-file-access': None
}
#下载的wkhtmltopdf绝对路径
path_wkthmltopdf = "D:\\environment\\wpdf\\wkhtmltopdf\\bin\\wkhtmltopdf.exe"
config = pdfkit.configuration(wkhtmltopdf=path_wkthmltopdf)
#h.html 输入 out.pdf 输出
pdfkit.from_file("实用工具\\文档转换\\test1.html", "实用工具\\文档转换\\123.pdf", configuration=config, options=wkhtmltopdf_options)
